public class test {
   /* public static void main(String[] args) {
    int[][]array1={ {1,2,3} , {2,4,5} };
    int[][]array2=new int[2][3];
    int[][]array3=new int[][]{{2,3,4},{3,4,5}};
        for (int i = 0; i <array2.length; i++) {
            for (int j = 0; j <array2[i].length ; j++) {  //打印列的写法array2[i].length
                System.out.print(array2[i][j]+" ");
            }
            System.out.println();
       }
    }
*/

/*
//打印不规则二维数组五行三列
   /* public static void main(String[] args) {
        int[][]array4=new int[2][];
        array4[0]=new int[5];
        array4[1]=new int[3];
        for (int i = 0; i < array4.length; i++) {
            for (int j = 0; j < array4[i].length; j++) {
                System.out.print(array4[i][j]+" ");
            }
            System.out.println();//注意换行打印在for(i)循环里
        }

    }*/


}



